﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CCActionManager : SSActionManager, ISSActionCallback
{
    public CCFlyAction fly;
    public FirstController sceneController;

    protected new void Start()
    {
        sceneController = (FirstController)SSDirector.getInstance().currentSceneController;
        sceneController.actionManager = this;
    }

    protected new void Update()
    {
        base.Update();
    }

    public void DiskFly(GameObject disk)
    {
        fly = CCFlyAction.GetSSAction();
        this.RunAction(disk, fly, this);
    }

    public void SSActionEvent(SSAction source, SSActionEventType events = SSActionEventType.Completeted, int intParam = 0, string strParam = null, Object objectParam = null)
    {
        DiskFactory diskFactory = Singleton<DiskFactory>.Instance;
        diskFactory.FreeDisk(source.gameobject);
    }
}
